/* ===========================================================
			Resonance
	NPC Name: 		Lirin
	Map(s): 		Snow Island: Rien (140000000)
	Description: 	Quest - The Five Heroes
=============================================================
Version 1.0 - Script Done.(11/6/2010)
=============================================================
*/

var status = -1;

function start(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
			qm.sendNext("What's stopping you? Even if #p1201001# doesn't react, I won't be disappointed. Go ahead and touch #p1201001# by just #bclicking#k on it.");
			qm.dispose();
			return;
		}
	}
	if (status == 0)
		qm.sendNext("The records of the heroes that battled the Black Wizard is few and far between. They are almost impossible to find, actually. Even the Book of Prophecy only states that there were five heroes that battled the Black Wizard, with no clue whatsoever on their looks. Do you remember anything from that faithful day...? Like, how the heroes look like?");
	if (status == 1)
		qm.PlayerToNpc("No... nothing really.");
	if(status == 2)
		qm.sendNextPrev("I see. I mean, the curse of the Black Wizard wouldn't be so weak that you'd remember things by now, anyway. But that being said, now that we have established that you are one of the heroes from that era, there should be a point where the past will be brought up sometime... but because of the battle, you don't have any armors or weapons with you, and... wait, the #bweapon#k!");
	if(status == 3)
		qm.PlayerToNpc("A weapon?");
	if(status == 4)
		qm.sendNextPrev("Yeah, years ago, while digging up the ice in search of heroes, I came across this incredible weapon. It looked like something a hero would use, so I placed it somewhere at the center of town. Didn't you see it? #b#p1201001##k... ..#i4032372#..It looks like this...");
	if(status == 5)
		qm.PlayerToNpc("Come to think of it, what was #p1201001# doing in town...?");
	if(status == 6)
		qm.sendAcceptDecline("Yes, that was it. According to the records, the weapon recognizes its rightful owner, and if you're the hero that used #p1201001#, then the weapon will react when you first lay your hands on it. Go ahead and click on #b#p1201001#.#k");
	if(status == 7){
		qm.forceCompleteQuest();
		qm.sendOk("If #p1201001# reacts, then you'll be #bAran#k, the hero that used #p1201001#.");
		qm.showWZEffect("Effect/Direction1.img/aranTutorial/ClickPoleArm", -1);
		qm.dispose();
	}
}

function end(mode, type, selection) {

}